import { Input } from 'antd'

const Search = Input.Search

const search = () => (
    <div>
        <Search
            placeholder="输入搜索内容"
            onSearch={value => console.log(value)}
            style={{ width: 200 }}
        />
        <style jsx> {`
            div {
                flex: 0 0 200px;
                margin: 0 20px 0 0;
            }
            input {
                display: inline-block;
            }
            .frame {
                margin: 5px 5px;
                padding: 6px 10px;
                width: 200px
                min-width: 100px;
                border: 1px solid #c4e0fd;
                border-radius: 4px;
                background: #f5f5f5;
                font-size: 12px;
                outline: none;
            }
            .btn {
                margin: 5px 5px;
                padding: 6px 10px;
                min-width: 54px;
                text-align: center;
                background-color: #f2f2f2;
                border: 1px solid #c4e0fd;
                border-radius: 4px;
                color: #757575;
                cursor: pointer;
                font-family: arial,sans-serif;
                font-size: 13px;
            }
            @media (max-width:840px){
                div{
                  display: none
                }
            }
        `}</style>
    </div>
)
export default search